package com.intech.android.demo.cms.beans;

import com.intech.android.demo.cms.common.Util;
import com.intech.android.demo.cms.decorators.AccessRightsDecorator;

import java.util.ArrayList;
import java.util.List;

public class AccessRightsBean
{
    List<AccessRightsDecorator> accessRightsDecorators;

    private void fillAccessRightsListTempValues()
    {
        accessRightsDecorators = new ArrayList<AccessRightsDecorator>();
        accessRightsDecorators.add(new AccessRightsDecorator("1", "Admin", "Yes", "Yes", "Yes", "Yes", "Yes", "Yes", "Yes", "Yes", "Admin", "Admin"));
        accessRightsDecorators.add(new AccessRightsDecorator("2", "Full", "Yes", "Yes", "Yes", "Yes", "Yes", "Yes", "Yes", "No", "Full", "Full"));
        accessRightsDecorators.add(new AccessRightsDecorator("3", "Content", "Yes", "Yes", "No", "Yes", "Yes", "No", "No", "No", "Content", "Content"));
        accessRightsDecorators.add(new AccessRightsDecorator("4", "Support", "No", "No", "Yes", "No", "No", "Yes", "No", "No", "Support", "Support"));
    }

    public List<AccessRightsDecorator> getAccessRightsDecorators()
    {
        if (Util.isEmpty(accessRightsDecorators))
        {
            fillAccessRightsListTempValues();
        }
        return accessRightsDecorators;
    }


    public void setAccessRightsDecorators(List<AccessRightsDecorator> accessRightsDecorators)
    {
        this.accessRightsDecorators = accessRightsDecorators;
    }
}
